package com.kymatrix.mpo.plus.bpm.server.model.form.instance;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import java.util.Map;
import javax.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.experimental.Accessors;

@ApiModel(value = "管理后台 - 流程实例的创建 Request")
@Data
@Accessors(chain=true)
public class SaveBpmProcessInstanceReq {

    @ApiModelProperty(value = "流程定义的编号", example = "1024")
    @NotEmpty(message = "流程定义编号不能为空")
    private String processDefinitionId;

    @ApiModelProperty(value = "变量实例（动态表单）")
    private Map<String, Object> variables;

    @ApiModelProperty(value = "发起人自选审批人 Map", example = "{taskKey1: [1, 2]}")
    private Map<String, List<String>> startUserSelectAssignees;

}
